JavaScript Groovy Color Thing II
This applet chases random color sequences around the top four windows.
The windows are named JCcolorView1, JCcolorView2, etc. to ease
iterative reference to each frame as shown below in
doAdjust().
// Do the actual adjustment
function doAdjust(aColor, anOffset)
{
myColor.adjustColor(aColor, anOffset)
// select a window to update
eval("parent.JCcolorView" + whichWin +
".document.bgColor = myColor.hexColor()")
// update chase window iteratively
whichWin = (whichWin + 1) % 4
}
Copyright ©1998 by Charles River Media, All Rights Reserved